<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2020/7/23
  Time: 10:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>党员培训</title>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8 ? MYOA_CHARSET : htmlspecialchars($HTML_PAGE_CHARSET))?>" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="/lib/layui/layui/css/layui.css?20190817.1">
    <link rel="stylesheet" href="/lib/layui/layui/css/common.css">
    <link rel="stylesheet" href="/lib/layui/layui/css/eleTree.css">
    <script type="text/javascript" src="/js/jquery/jquery-1.9.1.js"></script>
    <script src="/lib/layui/layui/layui.js"></script>
    <script src="/lib/jquery.form.min.js"></script>
    <script src="/lib/layui/layui/js/baseCode/base.js?v=2019080918:09" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="/lib/layui/layui/global.js"></script>
    <script src="/js/base/base.js" type="text/javascript" charset="utf-8"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        /*table{*/
        /*    width: 65%;*/
        /*    margin: 0 auto;*/
        /*    margin-bottom: 20px;*/
        /*}*/
        td{
            /*border: 1px solid #999;*/
            padding: 6px 0;
            /*text-align: center;*/
            height: 40px;
        }
        .fromTr>.fromTd1{
            width: 10%;
        }
        .fromTr>.fromTd2{
            width: 20%;
        }
        .fromTd2{
            padding: 0 !important;
        }
        .fromTrinp{
            width: 94%;
            height: 77%;
            border: none;
            padding: 0 10px;
        }
        input,textarea{
            border: none;
            padding-left: 10px;
        }
        input[name="file"]{
            width: 30%;
        }
        .layui-disabled, .layui-disabled:hover {
            color: #666!important;
            cursor: not-allowed!important;
        }
        .shengqing{
            display: flex;
            width: 100%;
            height: 100%;
            border: 1px solid #e6e6e6;
            justify-content: center;
            align-items: center;
        }
        .layui-input, .layui-select, .layui-textarea {
            height: 32px;
        }
        .layui-input, .layui-textarea {
           margin-left: 10px;
            width: 95%;
        }
        .font_style{
            font-family: Microsoft yahei,Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
        }
        table{
            border-collapse:separate!important;
        }
        .layui-btn {
            height: 35px;
            /*background-color: #3691DA;*/
        }
        .layui-disabled, .layui-disabled:hover {
            color: #708090!important;
        }
        .layui-btn-normal {
             background-color: #009688;
        }
    </style>
</head>
<body>
<table border="0" width="90%" cellspacing="0" cellpadding="3" class="small">
    <tr>
        <td class="Big" style="padding: 19px 0;"><img align="absMiddle" src="/img/commonTheme/${sessionScope.InterfaceModel}/infofind11.png" style="margin-left: 35px;margin-bottom: 2px;"><span class="big3" style="font-family: 微软雅黑;font-size: 22px;margin-left: 10px;">党员培训</span></td>
    </tr>
</table>
<div class="content">
    <form class="layui-form" action="" lay-filter="example" >
        <table class="layui-table"  style="margin: 0 auto;margin-top: 20px;width: 82%;">
            <tbody>
            <tr class="fromTr" style="height: 50px;">
                <td colspan="4" style="font-size: 18px; background-color: #009688; text-align: center; color: white">党员培训</td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">发展对象姓名</td>
                <td class="fromTd2"><input class="fromTrinp layui-disabled"  name="username" type="text"></td>
                <td class="fromTd1">发展阶段</td>
                <td class="fromTd2">
                    <select class="fromTrinp" disabled="disabled" name="development"  type="text">
                        <option value="0">申请阶段</option>
                        <option value="2">入党积极分子</option>
                        <option value="3" >发展对象</option>
                        <option value="4" >预备党员未接收</option>
                        <option value="5">已接收预备党员</option>
                        <option value="6">党员</option>
                    </select>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">政治审查时间</td>
                <td class="fromTd2">
<%--                    <input class="fromTrinp" name="sex" type="text">--%>
                    <div class="layui-input-inline" style="width: 100px;">
                        <input type="text" name="price_min" id="date" lay-verify="date" autocomplete="off" placeholder="开始日期" class="layui-input">
                    </div>
                    <div class="layui-input-inline" style="margin-left: 15px;">---</div>
                    <div class="layui-input-inline" style="width: 100px;" >
                        <input type="text" name="price_max" id="date" lay-verify="date" autocomplete="off" placeholder="结束日期" class="layui-input">
                    </div>
                </td>
                <td class="fromTd1">集中培训时间</td>
                <td class="fromTd2">
<%--                    <input class="fromTrinp"  name="nativity" type="text">--%>
                    <div class="layui-input-inline" style="width: 100px;">
                        <input type="text" name="price_min" id="date" lay-verify="date" autocomplete="off" placeholder="开始日期" class="layui-input">
                    </div>
                    <div class="layui-input-inline" style="margin-left: 15px;">---</div>
                    <div class="layui-input-inline" style="width: 100px;" >
                        <input type="text" name="price_max" id="date" lay-verify="date" autocomplete="off" placeholder="结束日期" class="layui-input">
                    </div>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1">政治审查函调材料</td>
                <td colspan="3" style="    text-align: left;padding-left: 20px">
                        <span>附件：
<%--                             <input type="file" name="file" id="test20">--%>
                            <button type="button" class="layui-btn layui-btn-normal" id="test8">选择文件</button>
<%--                            <span class="unchoose">未选择任何文件</span>--%>
                        </span>
                    <span style="margin-left: 60px">签字：
                            <input type="text" style="width: 200px;height: 37px; " >
                        </span>
                </td>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1" >政治审查综合报告</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
                           <button type="button" class="layui-btn layui-btn-normal" id="test9">选择文件</button>
<%--                            <span class="unchoose">未选择任何文件</span>--%>
                        </span>
                    <span style="margin-left: 60px">签字：
                            <input type="text" style="width: 130px;height: 37px;" name="nameQ">
                        </span>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1" >短期集中培训材料</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
                            <button type="button" class="layui-btn layui-btn-normal" id="test10">选择文件</button>
<%--                            <span class="unchoose">未选择任何文件</span>--%>
                        </span>
                    <span style="margin-left: 60px">签字：
                            <input type="text" style="width: 130px;height: 37px;" name="nameQ">
                        </span>
            </tr>
            <tr class="fromTr">
                <td class="fromTd1" >确定发展对象期间思想汇报</td>
                <td colspan="3" style="text-align: left;  padding-left: 20px;">
                        <span >附件：
<%--                          <input type="file" name="file" id="test20">--%>
                            <button type="button" class="layui-btn layui-btn-normal" id="test11">选择文件</button>
<%--                            <span class="unchoose">未选择任何文件</span>--%>
                        </span>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center">
                    <button type="button" class="layui-btn" id="test20">上传</button>
                </td>
            </tr>
            </tbody>
        </table>
    </form>

</div>
</body>
</html>
<script>
    layui.use(['upload','form','layedit','laydate'], function() {
        var $ = layui.jquery
            , upload = layui.upload
            ,form = layui.form
            ,layedit = layui.layedit
            ,laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#date'
        });
        //input框回显
        $.ajax({
            type:'get',
            url:'/partyMember/findPartyMember',
            dataType: 'json',
            success: function (res) {
                //console.log(res.object)
                var data=res.object
                //input框赋值
                form.val('example', {
                    "username": data.userName // "name": "value"
                    ,"development": data.developPhase //发展阶段
                    // ,"name":''  //签名
                    // ,"clerk":'' //支部书记预设
                });
                if(data.userName == ''){
                    layer.alert('您还未申请入党', {
                        icon: 5,
                        title: "提示"
                    }); 
                }
            }
        })


        //指定允许上传的文件类型
        upload.render({
            elem: '#test8'
            ,url: '/upload?module=workflow' //改成您自己的上传接口
            ,auto:false
            ,accept: 'file' //普通文件
            ,bindAction: '#test20'
            ,done: function(res){
                layer.msg('上传成功');
                //console.log(res);
            }
        });
    })
</script>

